package kr.ac.kongju.gedl.item.vo;

import java.io.Serializable;

public class ItemLinkVO  implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = 214395358522877172L;
	private String itemLinkId = "";    //번호
	private String itemId = "";      //아이템ID
	private String levelId = "";     //아이템레벨테이블의 ID
	private String types = "";       //url/gis|coordinate/linkid
	private String title = "";       //연계명칭@title
	private String gisX = "";        //위도gis@value
	private String gisY = "";        //경도gis@value
	private String coordinateX = ""; //이미지내위치 coordinate@value
	private String coordinateY = ""; //이미지내위치 coordinate@value
	private String src = "";         //url@src
	private String target = "";      //url@target
	private String id = "";          //시스템내연계linkid@id
	private String org = "";         //linkid@org
	private String xPath = "";       //추출경로
	private String mainTitle = "";	//기사명
	
	public ItemLinkVO() {
		super();
	}

	public ItemLinkVO(String itemLinkId) {
		super();
		this.itemLinkId = itemLinkId;
	}

	public String getItemLinkId() {
		return itemLinkId;
	}

	public void setItemLinkId(String itemLinkId) {
		this.itemLinkId = itemLinkId;
	}

	public String getItemId() {
		return itemId;
	}

	public void setItemId(String itemId) {
		this.itemId = itemId;
	}

	public String getLevelId() {
		return levelId;
	}

	public void setLevelId(String levelId) {
		this.levelId = levelId;
	}

	public String getTypes() {
		return types;
	}

	public void setTypes(String types) {
		this.types = types;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getGisX() {
		return gisX;
	}

	public void setGisX(String gisX) {
		this.gisX = gisX;
	}

	public String getGisY() {
		return gisY;
	}

	public void setGisY(String gisY) {
		this.gisY = gisY;
	}

	public String getCoordinateX() {
		return coordinateX;
	}

	public void setCoordinateX(String coordinateX) {
		this.coordinateX = coordinateX;
	}

	public String getCoordinateY() {
		return coordinateY;
	}

	public void setCoordinateY(String coordinateY) {
		this.coordinateY = coordinateY;
	}

	public String getSrc() {
		return src;
	}

	public void setSrc(String src) {
		this.src = src;
	}

	public String getTarget() {
		return target;
	}

	public void setTarget(String target) {
		this.target = target;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getOrg() {
		return org;
	}

	public void setOrg(String org) {
		this.org = org;
	}

	public String getxPath() {
		return xPath;
	}

	public void setxPath(String xPath) {
		this.xPath = xPath;
	}

	public String getMainTitle() {
		return mainTitle;
	}

	public void setMainTitle(String mainTitle) {
		this.mainTitle = mainTitle;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result
				+ ((itemLinkId == null) ? 0 : itemLinkId.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		ItemLinkVO other = (ItemLinkVO) obj;
		if (itemLinkId == null) {
			if (other.itemLinkId != null)
				return false;
		} else if (!itemLinkId.equals(other.itemLinkId))
			return false;
		return true;
	}

	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append("ItemLinkVO [coordinateX=");
		builder.append(coordinateX);
		builder.append(", coordinateY=");
		builder.append(coordinateY);
		builder.append(", gisX=");
		builder.append(gisX);
		builder.append(", gisY=");
		builder.append(gisY);
		builder.append(", id=");
		builder.append(id);
		builder.append(", itemId=");
		builder.append(itemId);
		builder.append(", itemLinkId=");
		builder.append(itemLinkId);
		builder.append(", levelId=");
		builder.append(levelId);
		builder.append(", org=");
		builder.append(org);
		builder.append(", src=");
		builder.append(src);
		builder.append(", target=");
		builder.append(target);
		builder.append(", title=");
		builder.append(title);
		builder.append(", types=");
		builder.append(types);
		builder.append(", xPath=");
		builder.append(xPath);
		builder.append("]");
		return builder.toString();
	}
	
}
